package com.chinasoft.service;

import com.chinasoft.common.Result;
import com.chinasoft.domain.Student;
import com.chinasoft.domain.User;
import com.chinasoft.query.StudentQuery;

import java.util.List;

public interface StudentService {
    //查询所有
    List<Student> loadAll();
    //删除
    boolean  deleteById(Integer id);
    //批量删除
    boolean batchDelete(List<Integer> ids);
    //新增
    boolean  addStudent(Student student);
    //修改
    boolean updateStudent(Student student);
    //登录
    Student login(String name,Integer age);
    //根据姓名查询
    Student loadByName(String name);
    //高级查询
    Result pageQuery(StudentQuery studentQuery);

}
